from django.test import TestCase

# Create your tests here.



import datetime
date_strA= "2014-09-29"
date_strB= "2014-10-04"
dayA= datetime.datetime.strptime(sd, '%Y-%m-%d')
dayB= datetime.datetime.strptime(ed, '%Y-%m-%d')
sub_day=dayB-dayA
print(sub_day.days)
mid_day=dayA+sub_day/2
print(mid_day.strftime('%Y-%m-%d'))